<template>

  <dv-capsule-chart :config="config" style="width:400px;height:300px" />

</template>

<script>
    import * as good from "src/api/good";

    export default {
        name: "jiaonang",
        data(){
          return{
            config: {
              data: []
            }
          }
        },
      methods: {
        async initData(){
          const that = this
          await  good.getDayExp().then(function (response) {
            let data  = response.data.data
            that.config = {
              data: data,
              unit: '已上架天数',
              showValue: true
            }
          })
        }
      },
      async created() {
        await this.initData()
      }
    }
</script>

<style scoped>

</style>
